/**
 * api接口统一管理
 */


import service from "./http.js";


// 登录接口
export function LOGIN() {
  return service({
    url: "/user",
    method: "get",
  });
}

export function getHTML() {
  return service({
    url: "/htmlList",
    method: "get",

  });
}
//添加
export function postHTML(data) {
  return service({
    url: "/htmlList",
    method: "post",
    data
  });
}
//删除
export function deleteHTML(id) {
  return service({
    url: "/htmlList/" + id,
    method: "delete",
  });
}


// cssList
export function getCssList() {
  return service({
    url: "/cssList",
    method: "get",
  });
}

//添加
export function postCssList(data) {
  return service({
    url: "/cssList",
    method: "post",
    data,
  });
}
//删除
export function deleteCssList(id) {
  return service({
    url: "/cssList/" + id,
    method: "delete",
  });
}

// jsList
export function getJsList() {
  return service({
    url: "/jsList",
    method: "get",
  });
}

//添加
export function postJsList(data) {
  return service({
    url: "/jsList",
    method: "post",
    data,
  });
}
//删除
export function deleteJsList(id) {
  return service({
    url: "/jsList/" + id,
    method: "delete",
  });
}

// vue2List
export function getVue2List() {
  return service({
    url: "/vue2List",
    method: "get",
  });
}

//添加
export function postVue2List(data) {
  return service({
    url: "/vue2List",
    method: "post",
    data,
  });
}
//删除
export function deleteVue2List(id) {
  return service({
    url: "/vue2List/" + id,
    method: "delete",
  });
}


// vue3List
export function getVue3List() {
  return service({
    url: "/vue3List",
    method: "get",
  });
}

//添加
export function postVue3List(data) {
  return service({
    url: "/vue3List",
    method: "post",
    data,
  });
}
//删除
export function deleteVue3List(id) {
  return service({
    url: "/vue3List/" + id,
    method: "delete",
  });
}

// gitList
export function getGitList() {
  return service({
    url: "/gitList",
    method: "get",
  });
}

//添加
export function postGitList(data) {
  return service({
    url: "/gitList",
    method: "post",
    data,
  });
}
//删除
export function deleteGitList(id) {
  return service({
    url: "/gitList/" + id,
    method: "delete",
  });
}


// wbList
export function getWbList() {
  return service({
    url: "/wbList",
    method: "get",
  });
}

//添加
export function postWbList(data) {
  return service({
    url: "/wbList",
    method: "post",
    data,
  });
}
//删除
export function deleteWbList(id) {
  return service({
    url: "/wbList/" + id,
    method: "delete",
  });
}

// otherList

export function getOtherList() {
  return service({
    url: "/otherList",
    method: "get",
  });
}

//添加
export function postOtherList(data) {
  return service({
    url: "/otherList",
    method: "post",
    data,
  });
}
//删除
export function deleteOtherList(id) {
  return service({
    url: "/otherList/" + id,
    method: "delete",
  });
}